import 'package:mall/modules/service/user_service.dart';

class Business {
  //登录
  static Future login(String username, String password) async {
    await UserService.login(username, password);
  }

  //注册
  static Future register(String username, String password) async {
    await UserService.register(username, password);
  }

  //注册并登录
  static Future registerAndLogin({String? account,
    String? passWord,
   required String mobile,
   required String code,}) async {
    await UserService.registerAndLogin(account: account, passWord: passWord, mobile: mobile, code: code);
  }
}
